package com.jack.payment.dao.billing;

import com.jack.payment.entity.filter.PayFilter;
import com.jack.payment.entity.generate.billing.BillingModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BillingDao {
    /**
     * 筛选出有多少数据符合条件
     * @param billingFilter
     * @return
     */
    Integer filterBillingCount(PayFilter.BillingFilter billingFilter);

    /**
     * 筛选出合适的账单记录列表
     * @return
     */
    List<BillingModel> filterBillingRecordList(PayFilter.BillingFilter billingFilter);

    /**
     * 根据系统订单号获取指定的
     * @return
     */
    BillingModel getAppointBillingRecord(@Param("orderNo") String orderNo);

    /**
     * 添加一条账单记录
     * @param billingModel
     * @return
     */
    boolean insertBillingRecord(BillingModel billingModel);

    /**
     * 修改账单信息
     * @param billingModel
     * @return
     */
    boolean updateBillingRecord(BillingModel billingModel);
}
